package com.ttc.ssm.mapper.home;

import com.ttc.ssm.common.MailPage;
import com.ttc.ssm.po.DeliveryActivity;

import java.util.List;
import java.util.Map;

/**
 * Created by Jiarui on 2016/8/17.
 */
public interface HomeDeliveryActivityMapper {
    public int countRowsNoReadCustomer(int customer_id) throws Exception;
    public int countRowsNoReadCustomerForEmail(MailPage mailPage) throws Exception;
    public int countRowsNoReadCompanyForEmail(MailPage mailPage) throws Exception;
    public int countRowsNoReadCompany(int company_id) throws Exception;
    public List<DeliveryActivity> selectActivityCustomer(int customer_id) throws Exception;
    public List<DeliveryActivity> selectActivityCustomerForPage(MailPage mailPage) throws Exception;
    public List<DeliveryActivity> selectActivityCompanyForPage(MailPage mailPage) throws Exception;
    public List<DeliveryActivity> selectActivityCompany(int company_id) throws Exception;
    void insertActivity(DeliveryActivity deliveryActivity) throws Exception;
    public void updateIsRead(Map map) throws Exception;
}
